package com.neudu.yyzx_service.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neudu.yyzx_service.pojo.Nursecontent;
import com.neudu.yyzx_service.pojo.Nurselevel;
import com.neudu.yyzx_service.service.NurselevelService;
import com.neudu.yyzx_service.mapper.NurselevelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author asus
* @description 针对表【nurselevel】的数据库操作Service实现
* @createDate 2025-04-25 10:51:36
*/
@Service
public class NurselevelServiceImpl extends ServiceImpl<NurselevelMapper, Nurselevel>
    implements NurselevelService{
    @Autowired
    private NurselevelMapper nurselevelMapper;
    public List<Nurselevel> get_all_levelname(){
        return nurselevelMapper.get_all_levelname();
    };

    @Override
    public List<Nurselevel> getallnurselevel() {
        return nurselevelMapper.selectallnurselevel();
    }

    @Override
    public Nurselevel selectLevelWithContents(Integer id) {
        return nurselevelMapper.selectLevelWithContents(id);
    }



    @Override
    public List<Nursecontent> getContentsByLevelId(Integer nurselevelid) {
        return  nurselevelMapper.selectContentsByLevelId(nurselevelid);
    }

    @Override
    public List<Nurselevel> get_all_name() {
        return nurselevelMapper.get_all_name();
    }

    @Override
    public Integer updatestatus(Integer id,Integer levelStatus) {
        return nurselevelMapper.updatestatus(id,levelStatus);
    }

    @Override
    public Integer addonelevelitem(Integer levelId, Integer itemId) {
        return nurselevelMapper.addonelevelitem(levelId,itemId);
    }

}




